.class Les/pp$b;
.super Landroid/content/BroadcastReceiver;
.source "ResidentToolEnableNotification.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/pp;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "b"
.end annotation


# instance fields
.field final synthetic a:Les/pp;


# direct methods
.method private constructor <init>(Les/pp;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/pp$b;->a:Les/pp;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Les/pp;Les/pp$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Les/pp$b;-><init>(Les/pp;)V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 1

    .line 1
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    const-string v0, "com.estrongs.android.pop.app.residenttoolbar.click.intent"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 2
    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    invoke-static {p1}, Les/pp;->b(Les/pp;)V

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    const-string p2, "com.estrongs.android.pop.app.residenttoolbar.delete.intent"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 4
    :try_start_0
    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    iget-object p1, p1, Les/pp;->a:Landroid/content/Context;

    const/4 p2, 0x0

    if-eqz p1, :cond_1

    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    invoke-static {p1}, Les/pp;->c(Les/pp;)Les/pp$b;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 5
    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    iget-object p1, p1, Les/pp;->a:Landroid/content/Context;

    iget-object v0, p0, Les/pp$b;->a:Les/pp;

    invoke-static {v0}, Les/pp;->c(Les/pp;)Les/pp$b;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 6
    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    iget-object p1, p1, Les/pp;->a:Landroid/content/Context;

    instance-of p1, p1, Lcom/estrongs/android/pop/FexApplication;

    if-nez p1, :cond_1

    .line 7
    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    iput-object p2, p1, Les/pp;->a:Landroid/content/Context;

    .line 8
    :cond_1
    iget-object p1, p0, Les/pp$b;->a:Les/pp;

    invoke-static {p1, p2}, Les/pp;->a(Les/pp;Les/pp$b;)Les/pp$b;

    .line 9
    invoke-static {}, Lcom/estrongs/android/util/o0;->a()Landroid/os/Handler;

    move-result-object p1

    iget-object p2, p0, Les/pp$b;->a:Les/pp;

    invoke-static {p2}, Les/pp;->d(Les/pp;)Ljava/lang/Runnable;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 10
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_2
    :goto_0
    return-void
.end method
